<template>
  <el-dialog v-model="open" :title="`${route.meta.title}：易损性数据`" @open="initOpen" @close="close">
    <el-radio-group v-model="radio">
      <el-radio label="0">国家级数据</el-radio>
      <el-radio label="1">自定义类-完全版</el-radio>
      <el-radio label="2">自定义类群体版</el-radio>
      <el-radio label="3">自定义类-国家级数据生成版</el-radio>
    </el-radio-group>
    <template #footer>
      <el-button type="primary" @click="confirm" auto-insert-space>确定</el-button>
      <el-button plain @click="close" auto-insert-space>取消</el-button>
    </template>
  </el-dialog>
</template>
<script setup>
const props = defineProps({
  open: Boolean,
  selected: String
})
const route = useRoute()
const emits = defineEmits(['update:open', 'getVersionCode'])
const radio = ref('0')
const selectedId = ref('')
const initOpen = () => {
  // getProvinceData()
  // getList()
  selectedId.value = props.selected
}
const getList = () => {

}
const close = () => {
  emits('update:open', false)
}
const confirm = () => {
  emits('getVersionCode', selectedId.value)
  close()
}
</script>